/**
 * 
 */
package info.niwota.frames;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;

/**
 * @author qiangli
 *
 */
public class FeelingLuckyActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	
	    //
	    Uri uri = ImageUtil.queryFirst(getContentResolver());
	    if (uri != null) {
	    	Intent data = new Intent(null, uri);
	    	setResult(RESULT_OK, data);
	    } else {
	    	setResult(RESULT_CANCELED);
	    }
		finish();
	}

}
